package cn.itcast.clients;


import cn.itcast.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface UserClient {
    /**
     * 默认和支持springmvc注解
     * @param id
     * @return
     */
    @GetMapping("user/{id}")
    public User queryById(@PathVariable("id") Long id);
}
